package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusDeviceTotalMapper;
import com.ruoyi.business.domain.BusDeviceTotal;
import com.ruoyi.business.service.IBusDeviceTotalService;

/**
 * 总值趋势Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-01
 */
@Service
public class BusDeviceTotalServiceImpl implements IBusDeviceTotalService 
{
    @Autowired
    private BusDeviceTotalMapper busDeviceTotalMapper;

    /**
     * 查询总值趋势
     * 
     * @param id 总值趋势主键
     * @return 总值趋势
     */
    @Override
    public BusDeviceTotal selectBusDeviceTotalById(Long id)
    {
        return busDeviceTotalMapper.selectBusDeviceTotalById(id);
    }

    /**
     * 查询总值趋势列表
     * 
     * @param busDeviceTotal 总值趋势
     * @return 总值趋势
     */
    @Override
    public List<BusDeviceTotal> selectBusDeviceTotalList(BusDeviceTotal busDeviceTotal)
    {
        return busDeviceTotalMapper.selectBusDeviceTotalList(busDeviceTotal);
    }

    /**
     * 新增总值趋势
     * 
     * @param busDeviceTotal 总值趋势
     * @return 结果
     */
    @Override
    public int insertBusDeviceTotal(BusDeviceTotal busDeviceTotal)
    {
        return busDeviceTotalMapper.insertBusDeviceTotal(busDeviceTotal);
    }

    /**
     * 修改总值趋势
     * 
     * @param busDeviceTotal 总值趋势
     * @return 结果
     */
    @Override
    public int updateBusDeviceTotal(BusDeviceTotal busDeviceTotal)
    {
        return busDeviceTotalMapper.updateBusDeviceTotal(busDeviceTotal);
    }

    /**
     * 批量删除总值趋势
     * 
     * @param ids 需要删除的总值趋势主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceTotalByIds(Long[] ids)
    {
        return busDeviceTotalMapper.deleteBusDeviceTotalByIds(ids);
    }

    /**
     * 删除总值趋势信息
     * 
     * @param id 总值趋势主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceTotalById(Long id)
    {
        return busDeviceTotalMapper.deleteBusDeviceTotalById(id);
    }
}
